<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/vue.js"></script>
    <style>
        .bar{
            width: 500px;
            height: 30px;
            background-color: #ccc;
        }
        .progress{
            height: 30px;
            background:linear-gradient(skyblue,blue)
        }
    </style>
</head>
<body>
    <div id="root">
        <div class="bar">
            <div class="progress" :style="{width:percent+'%'}"></div>
        </div>


        <div v-for="i in 10">
            {{i}}
        </div>
    </div>
    <script>
       const app=new Vue({
            el:'#root',
            data(){
                return{
                    percent:10
                }
            }
        })
    </script>
</body>
</html>